  <div class="main_box">
    	<div class="left_bar">
        <!--*********************-->
        	<div class="order_box">
            	<h1></h1>
                <h2>
					<form id="sortform" action="<?php echo edp_href_link(PAGENAME_REVIEW_SUMMARY,'platid='.$platid); ?>" method="GET">

						<input type="hidden" id="sortby" name="sortby" value="<?php echoPageVar($pageVars, "sortby");?>" />
						<input type="hidden" id="order" name="order" value="<?php echoPageVar($pageVars, "order");?>" />
						<div class="ordertitle">
						<?php
						if($platid!=0)
						{ 
							echo $platformList["$platid"];  
						}
						?>所有点评</div>
						<div class="orderlink">
							<div class="orderlinktxt">
								按照<a href="#" sortby="flower_count">鲜花数</a>|
								<a href="#" sortby="response_count">回应数</a>|
								<a href="#" sortby="review_date">点评时间</a>|
								<a href="#" sortby="contribution">会员等级</a>排序
							</div>
							<div class="orderbutton"><a href="#" order="asc"><img src="<?php echo IMAGE_DIR; ?>arrow4.gif" /></a></div>
							<div class="orderbutton"><a href="#" order="desc"><img src="<?php echo IMAGE_DIR; ?>arrow5.gif" /></a></div>
						</div>
					</form>
                </h2>
                <h3></h3>
            </div>
			<?php
		   if( isset( $pageVars['reviews'] ) && count($pageVars['reviews']) > 0 ){
			   foreach( $pageVars['reviews'] as $review ){
	  ?>
								<div class="comment_box">
									<div class="comment_item_box">
										<div class="comment_left">
											<dl class="comment_head">
												<dt><a href="<?php echo edp_href_link(PAGENAME_USER_INFO, 'uid='.$review['user_id']);?>"><img src="<?php echo EdpGetAvatarUrl($review['logo_path']);?>" /></a></dt>
												<dd>
													<h1><a href="<?php echo edp_href_link(PAGENAME_USER_INFO, 'uid='.$review['user_id']);?>" style="line-height:14px;"><?php echoPageVar($review, 'nick'); ?></a></h1>
													<div class="degree_box">
														<span class="<?php echo getUserRankClass($review['contribution']); ?>"></span>
													  </div>
												</dd>
											</dl>
									  </div>
										 <div class="comment_right">
										   <div class="comment_topbg"></div>
										   <div class="comment_right_box">
										   <div class="comment_0">     
										  		<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$review['shop_id']);?>" target="_blank">
						 							<?php secho($review['shop_name']);?>
						 						</a>
						 					</div>		
												<div class="comment_1">
													<div class="point_box">
														<span class="score<? echo $review['score']+1;?>"></span>
													</div>
													<h2>宝贝真实度</h2><h3><?php echoPageVar($review, 'reality'); ?></h3>
													<h2>服务态度</h2><h3><?php echoPageVar($review, 'service'); ?></h3>
													<h2>发货速度</h2><h3><?php echoPageVar($review, 'velocity'); ?></h3>
													<h2>性价比</h2><h3><?php echoPageVar($review, 'rate'); ?></h3>
												</div>
												
													<?php 
													if($review['product_list'])
													{
													?>
													<dl class="comment_2">
													<dt>所买商品：</dt>
													<dd>
														<?php foreach ($review['product_list'] as $product_info) {?>
															<span>
																<a href="<?php echo edp_href_link(PAGENAME_PRODUCT_INFO, 'pid='.$product_info['id']);?>">
																	<?php secho( $product_info['product_name'] ); ?>
																</a>
															</span>
														<?php }?>
													</dd>
														</dl>
													<?php }?>
											
												<div class="comment_3">
													<?php 
													if(EdpStrLen($review['content'])>200)
													{
														secho(EdpSubStr($review['content'], 0, 200 )."...");
													}
													else 
													{
														secho($review['content']);
													} 
													?>
														<a href="<?php echo edp_href_link(PAGENAME_REVIEW_INFO,'rid='.$review['id']); ?>">详情>></a>
												</div>
												
												<?php
												if($review['tags']) 
												{
												?>
													<dl class="comment_4">
														<dt>标签：</dt>
														<dd>										
														<?php 
														foreach ($review['tags'] as $tag) 
														{
														?>
															<a href="<?php echo edp_href_link(PAGENAME_SHOP_SEARCH_RESULT,'q='.sconv($tag)); ?>"><?php secho( $tag ); ?></a>
														<?php 
														}
														?>
														</dd>
													</dl>
												<?php
												}
												?>
													
												<?php
												if($review['pic_list'])
												{
												?>
													<dl class="comment_6">
														<dt>图片：</dt>
														<dd>
														<?php 
														foreach ($review['pic_list'] as $pic_info)
														{
														?>
															<span><a href="<?php echo EdpGetPicURL($pic_info['picture_path']);?>"><?php secho($pic_info['name']); ?></a></span>
														<?php
														}
														?>
														</dd>
													</dl>
												<?php
												}
												?>
											
												<div class="comment_5">
													<h1>发表于<?php echoPageVar($review, 'review_date'); ?></h1>
													<div>
													<h2><a href="<?php echo edp_href_link(PAGENAME_REVIEW_INFO,'rid='.$review['id']); ?>"></a></h2>
													<h3><a href="<?php echo edp_href_link(PAGENAME_REVIEW_INFO,'rid='.$review['id'].'#reponse_anchor'); ?>"></a><?php if(intval($review['response_count'])>0) echo '<span>('.$review['response_count'].')</span>'; ?></h3>
													<h4><a id="Flower<?php echo $review['id'];?>" onclick="popupFlowerWindow('review','<?php echo $review['id']; ?>')"  href="#"></a><?php if(intval($review['flower_count'])>0) echo '<span id="Flower'.$review['id'].'" >('.$review['flower_count'].')</span>'; ?></h4>
											
													<h5><a id="Egg<?php echo $review['id'];?>" onclick="popupEggWindow('review','<?php echo $review['id']; ?>')"  href="#"></a><?php if(intval($review['egg_count'])>0) echo '<span id="Egg'.$review['id'].'" >('.$review['egg_count'].')</span>'; ?></h5>
												
													<h6><a onclick="popupReportWindow('3','<?php echo $review['id']; ?>')" href="#"></a></h6>
													</div>
												</div>
										   </div>
											<div class="comment_bottombg"></div>
										</div>
								  </div>
							  </div>
			<?php
			   }
		   }
	  ?>
             <div class="comment_bottomline"></div>
			 
             <div class="pagebox">
				 <?php echoPageVar($pageVars, 'pagebar')?>
             </div>
      </div>
      
<div id=addErrorReportBox style="display:none;cursor:default;" class="popup"></div>

<div id=flowerAndEggBox style="display:none;cursor:default;" class="popup"></div>    